luci-mod-network: fix default for vlan_naming
authorFelix Fietkau <[email protected]>
Mon, 2 Jun 2025 08:24:14 +0000 (10:24 +0200)
committerFelix Fietkau <[email protected]>
Mon, 2 Jun 2025 08:25:13 +0000 (10:25 +0200)
It defaults to 1 internally

Fixes: https://github.com/openwrt/luci/issues/7640
Signed-off-by: Felix Fietkau <[email protected]>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js

index 920a2237366dd28984a92638a772e774e5a530dc..7be39107a66156107202433a684800a42577b704 100644 (file)
@@ -1558,6 +1558,9 @@ return view.extend({
                                o = ss.taboption('encryption', form.Flag, 'vlan_naming', _('RADIUS VLAN Naming'), _('Off: <code>vlanXXX</code>, e.g., <code>vlan1</code>. On: <code>vlan_tagged_interface.XXX</code>, e.g. <code>eth0.1</code>.'));
                                add_dependency_permutations(o, { mode: ['ap', 'ap-wds'], encryption: ['wpa', 'wpa2', 'wpa3', 'wpa3-mixed', 'wpa3-192'] });
                                add_dependency_permutations(o, { mode: ['ap', 'ap-wds'], encryption: ['psk', 'psk2', 'psk+psk2', 'psk-mixed'], ppsk: ['1'] });
+                               o.enabled = '1';
+                               o.disabled = '0';
+                               o.default = o.enabled;
 
                                o = ss.taboption('encryption', widgets.DeviceSelect, 'vlan_tagged_interface', _('RADIUS VLAN Tagged Interface'), _('E.g. eth0, eth1'));
                                add_dependency_permutations(o, { mode: ['ap', 'ap-wds'], encryption: ['wpa', 'wpa2', 'wpa3', 'wpa3-mixed', 'wpa3-192'] });